﻿using System.Collections.Generic;

namespace MvcForum.Net.Bussiness
{
    public class LikeRepo
    {
        public static List<Like> List(int topicId, int pageIndex, int pageSize)
        {
            return MainDB.Instant.Like_List(topicId, pageIndex, pageSize).ExecuteTypedList<Like>();
        }

        public static void Save(int topicId, int from, int to, int action)
        {
            MainDB.Instant.Like_Save(topicId, from, to, action).Execute();
        }
    }
}